#ifndef Box_h
#define Box_h

#include <float.h>
#include "Object.h"
#include "Plan.h"
#include "LocalObject.h"

class Box : public LocalObject
{
private:
	Plan x1;
	Plan x2;
	Plan y1;
	Plan y2;
	Plan z1;
	Plan z2;
	Point location;

public:
	Box() {};
	Box(const Plan&, const Plan&, const Plan&, const Plan&, const Plan&, const Plan&);
	Box(const Point&, const double, const double, const double, const double, const double);
	bool intersection(Ray&, Intersection&) const;
	Vector getNormal (const Point&) const;
};

#endif
